from fastapi import FastAPI
from src import zzx
from typing import Union


app = FastAPI()

@app.get("/")
def select(bookId: Union[int, None] = None):
    return zzx.select(bookId)
@app.get("/select")
def select_list(bkId: Union[int, None] = None):
    return zzx.select_list(bkId)
